package com.cdtye.itps.cms.controller.origindata;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.itps.cms.dao.origindata.entity.JcjcDetectC4Picture;
import com.cdtye.itps.cms.dao.origindata.vo.JcjcDetectC4PictureVo;
import com.cdtye.itps.cms.service.origindata.JcjcDetectC4PictureService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Api(tags="4c原始数据图片接口")
@Controller
@ResponseBody
@RequestMapping("/detect4cPicture")
public class JcjcDetectC4PictureController {
    @Autowired
    private JcjcDetectC4PictureService jcjcDetectC4PictureService;

    @ApiOperation(value = "根据区站id和支柱号查询c4原始数据的图片")
    @PostMapping(value = "/getC4ImageBySiteIdAndPillarId")
    public AjaxJson<List<JcjcDetectC4Picture>> getC4ImageBySiteIdAndPillarId(@RequestBody JcjcDetectC4PictureVo vo){
        return AjaxJson.success(jcjcDetectC4PictureService.getC4ImageBySiteIdAndPillarId(vo));
    }
}
